import { createRouter, createWebHistory } from 'vue-router'

import other from '@/router/other'

const routes = [
    /**
     * 路由拆分参考资料：https://developer.aliyun.com/article/841729
     */
    // 配置路由的位置
    ...other  // 导入路由语法: ...路由名字
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
